use crate::utils::single_linked_list::SingleLinkedNode;
use std::ptr::NonNull;

#[derive(Debug)]
pub(crate) struct Block {
    next: Option<NonNull<Self>>,
}

impl Block {
    pub(crate) fn init(&mut self) {
        self.next = None;
    }
}

impl SingleLinkedNode<Self> for Block {
    fn next(&mut self) -> &mut Option<NonNull<Self>> {
        &mut self.next
    }
}
